/**
 *    Copyright 2009 Seth Albnaese
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

 
package org.aquiferserver.common
{	
	/**
	 * ...
	 * @author Seth Albanese
	 * @version $Id: AquiferMessage.as 60 2009-06-15 08:47:09Z salbanese0080@gmail.com $
	 */
	[RemoteClass(alias="org.aquiferserver.common.AquiferMessage")]
	public class AquiferMessage 
	{
		
		public static var FROM_SERVER:int = -1;
		
		private var _type:MessageType;
		private var _sender:int;
		private var _sendTime:Number;
		
		public function AquiferMessage()
		{
			_sendTime = new Date().getTime();
		}
		
		public function get type() : MessageType { return _type; }
		public function set type( type:MessageType ) : void { _type = type; }
		
		public function get sender() : int { return _sender; }
		public function set sender( sender:int ) : void { _sender = sender; }
		
		public function get sendTime() : Number { return _sendTime; }
		public function set sendTime( time:Number ) : void { _sendTime = time; }
		
	}
}